/*
 * @Description: 辅助性的函数
 * @Author: Vergil
 * @Date: 2021-07-13 17:28:21
 * @LastEditTime: 2021-07-13 17:28:30
 * @LastEditors: Vergil
 */
export function oneOf(value, validList) {
  for (let i = 0; i < validList.length; i++) {
    if (value === validList[i]) {
      return true;
    }
  }
  return false;
}
